public class StringDemo3 {
    static void main() {
    String result = reverser("abc");
        System.out.println(result);
    }
    static String reverser(String str) {
        String result = "";
        for(int i = str.length() -1 ; i>=0; i--){
            char c = str.charAt(i);

        result = result + c;
        }
        return result;
    }
}
